﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="QingJia.ascx.cs" Inherits="Controls_Activity_QingJia" %>

<%@ Register src="ProcessList.ascx" tagname="ProcessList" tagprefix="uc1" %>
<%@ Register src="ProcessRole.ascx" tagname="ProcessRole" tagprefix="uc2" %>
<style type="text/css">
.shortInput
{
	width:140px;
}
</style>
<asp:Panel ID="pnlEdit" runat="server" Width="600px" CssClass="centerPanel">
<div class="webPanelBorder" >
    <div class="webPanelCaption">
        <asp:Literal ID="literalSubject" runat="server"></asp:Literal></div>
    <div class="webPanelContent">
        <table cellspacing="1" class="table">
            <tr>
                <td class="tableSubjectWidth" style="width:95px;">标题：</td>
                <td style="width:190px;"><asp:TextBox ID="tbSubject" runat="server" CssClass="shortInput" MaxLength="20" ></asp:TextBox>
                <ofcc:RequiredField ID="RequiredField1" runat="server" />
                </td>
                <td class="tableSubjectWidth" style="width:95px;">休假时间：</td>
                <td><asp:TextBox ID="tbBeginDate" runat="server" onfocus="calendar.ShowCaltable(this, event);" Width="70" CssClass="shortInput" MaxLength="36" ></asp:TextBox>
                    <ofcc:DropDownList ID="ddlBeginHH" runat="server" Width="50" ></ofcc:DropDownList><b>:</b><ofcc:DropDownList ID="ddlBeginMM" runat="server" Width="50"></ofcc:DropDownList>
                    <ofcc:RequiredField ID="RequiredField3" runat="server" />
                </td>
            </tr>
            <tr>
                <td>事假天数：</td>
                <td><asp:TextBox ID="tbSjDay" runat="server" CssClass="shortInput" MaxLength="3"></asp:TextBox>
                </td>
                <td>病假天数：</td>
                <td><asp:TextBox ID="tbBjDay" runat="server" CssClass="shortInput" MaxLength="3"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>年假天数：</td>
                <td><asp:TextBox ID="tbNjDay" runat="server" CssClass="shortInput" MaxLength="3"></asp:TextBox>
                </td>
                <td>其他假天数：</td>
                <td><asp:TextBox ID="tbQtjDay" runat="server" CssClass="shortInput" MaxLength="3"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>加班倒休天数：</td>
                <td><asp:TextBox ID="tbJbdxDay" runat="server" CssClass="shortInput" MaxLength="3"></asp:TextBox>
                </td>
                <td>值班倒休天数：</td>
                <td><asp:TextBox ID="tbZbdxDay" runat="server" CssClass="shortInput" MaxLength="3"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>是否离开本市：</td>
                <td colspan="3"><ofcc:RadioButtonList ID="rbListLeaved" style="float:left; margin-right:70px;" runat="server" RepeatDirection="Horizontal">
                <asp:ListItem Text="是" Value="True"></asp:ListItem>
                <asp:ListItem Text="否" Value="False" Selected></asp:ListItem>
                </ofcc:RadioButtonList>
                <div style="float:left;">
                <ofcc:CheckBox ID="cbIsCar" runat="server" Text="汽车" />
                <ofcc:CheckBox ID="cbIsTrain" runat="server" Text="火车" />
                <ofcc:CheckBox ID="cbIsShip" runat="server" Text="轮船" />
                <ofcc:CheckBox ID="cbIsAircraft" runat="server" Text="飞机" />
                </div>
                </td>
            </tr>            
            <tr>
                <td>去往何地：</td>
                <td colspan="3">
                <asp:TextBox ID="tbWhereTo" runat="server" CssClass="shortInput" MaxLength="20"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>离京时间：</td>
                <td><asp:TextBox ID="tbLeaveDate" runat="server" Width="70" onfocus="calendar.ShowCaltable(this, event);" CssClass="shortInput"  MaxLength="36" ></asp:TextBox>
                <ofcc:DropDownList ID="ddlLeaveHH" runat="server" Width="50" ></ofcc:DropDownList><b>:</b><ofcc:DropDownList ID="ddlLeaveMM" runat="server" Width="50"></ofcc:DropDownList>
                </td>
                <td>返京时间：</td>
                <td><asp:TextBox ID="tbBackDate" runat="server" Width="70" onfocus="calendar.ShowCaltable(this, event);" CssClass="shortInput" MaxLength="15"></asp:TextBox>
                <ofcc:DropDownList ID="ddlBackHH" runat="server" Width="50" ></ofcc:DropDownList><b>:</b><ofcc:DropDownList ID="ddlBackMM" runat="server" Width="50"></ofcc:DropDownList>
                </td>
            </tr>
            <tr>
                <td>请假原因：</td>
                <td colspan="3"><asp:TextBox ID="tbDescription" runat="server" CssClass="shortInput" Rows="5" MaxLength="50" Width="380" TextMode="MultiLine"></asp:TextBox>
                    <ofcc:RequiredField ID="RequiredField4" runat="server" />
                </td>
            </tr>
            <tr runat="server" id="trSelectRole">
                <td>选择角色：</td>
                <td colspan="3">
                <ofcc:DropDownList ID="ddlSelectRole" runat="server" Width="100" ></ofcc:DropDownList>
                </td>
            </tr>
        </table>
    </div>
</div>
<div class="webPanelButtonArea">
    <ofcc:LinkButton ID="btnSave" runat="server" OnClick="btnSave_Click" CssClass="linkButton" ValidationGroup="submit">保存</ofcc:LinkButton>
    <ofcc:LinkButton ID="btnSubmit" runat="server" OnClick="btnSubmit_Click" CssClass="linkButton" ValidationGroup="submit">提交</ofcc:LinkButton>
    <ofcc:LinkButton ID="btnCancel" runat="server" OnClick="btnCancel_Click"  CssClass="linkButton">取消</ofcc:LinkButton>
</div>
<asp:HiddenField ID="hfAddOrEdit" runat="server" />
<asp:HiddenField ID="hfInstanceID" runat="server" />
<asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="tbSubject"
    Display="None" ErrorMessage="请输入标题" ValidationGroup="submit"></asp:RequiredFieldValidator>
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="tbBeginDate"
    Display="None" ErrorMessage="请选择开始时间" ValidationGroup="submit"></asp:RequiredFieldValidator>
<asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="tbDescription"
    Display="None" ErrorMessage="请输入请假原因" ValidationGroup="submit"></asp:RequiredFieldValidator>
<asp:CompareValidator ID="CompareValidator1" runat="server" 
        ControlToValidate="tbBeginDate" Display="None" ErrorMessage="无效的休假时间,请按照[年年年年-月月-日日]格式输入" 
        Type="Date" Operator="DataTypeCheck" ValidationGroup="submit"></asp:CompareValidator>
<asp:CompareValidator ID="CompareValidator2" runat="server" 
        ControlToValidate="tbLeaveDate" Display="None" ErrorMessage="无效的离京时间,请按照[年年年年-月月-日日]格式输入" 
        Type="Date" Operator="DataTypeCheck" ValidationGroup="submit"></asp:CompareValidator>
<asp:CompareValidator ID="CompareValidator9" runat="server" 
        ControlToValidate="tbBackDate" Display="None" ErrorMessage="无效的返京时间,请按照[年年年年-月月-日日]格式输入" 
        Type="Date" Operator="DataTypeCheck" ValidationGroup="submit"></asp:CompareValidator>
<asp:CompareValidator ID="CompareValidator3" runat="server" 
        ControlToValidate="tbSjDay" Display="None" ErrorMessage="无效的事假天数,请输入半角数值" 
        Type="Double" Operator="DataTypeCheck" ValidationGroup="submit"></asp:CompareValidator>
<asp:CompareValidator ID="CompareValidator4" runat="server" 
        ControlToValidate="tbBjDay" Display="None" ErrorMessage="无效的病假天数,请输入半角数值" 
        Type="Double" Operator="DataTypeCheck" ValidationGroup="submit"></asp:CompareValidator>
<asp:CompareValidator ID="CompareValidator7" runat="server" 
        ControlToValidate="tbNjDay" Display="None" ErrorMessage="无效的年假天数,请输入半角数值" 
        Type="Double" Operator="DataTypeCheck" ValidationGroup="submit"></asp:CompareValidator>
<asp:CompareValidator ID="CompareValidator5" runat="server" 
        ControlToValidate="tbQtjDay" Display="None" ErrorMessage="无效的其他假天数,请输入半角数值" 
        Type="Double" Operator="DataTypeCheck" ValidationGroup="submit"></asp:CompareValidator>
<asp:CompareValidator ID="CompareValidator6" runat="server" 
        ControlToValidate="tbJbdxDay" Display="None" ErrorMessage="无效的加班倒休天数,请输入半角数值" 
        Type="Double" Operator="DataTypeCheck" ValidationGroup="submit"></asp:CompareValidator>
<asp:CompareValidator ID="CompareValidator8" runat="server" 
        ControlToValidate="tbZbdxDay" Display="None" ErrorMessage="无效的值班倒休天数,请输入半角数值" 
        Type="Double" Operator="DataTypeCheck" ValidationGroup="submit"></asp:CompareValidator>
<asp:ValidationSummary ID="ValidationSummary1" runat="server" EnableViewState="False"
    ShowMessageBox="True" ShowSummary="False" ValidationGroup="submit" />
</asp:Panel>


<asp:Panel ID="pnlRole" runat="server" Width="600px" Visible="false" CssClass="centerPanel">
<uc2:ProcessRole ID="ProcessRole1" runat="server" />
</asp:Panel>

<asp:Panel ID="pnlView" runat="server" Width="600px" Visible="false" CssClass="centerPanel">
<div class="webPanelBorder" >
    <div class="webPanelCaption">
        <asp:Literal ID="literalSubject2" runat="server"></asp:Literal></div>
    <div class="webPanelContent">                
        <table cellspacing="1" class="table">
            <tr>
                <td class="tableSubjectWidth" style="width:100px;">标题：</td>
                <td style="width:190px;"><asp:Label ID="lbSubject" runat="server" Text=""></asp:Label>
                </td>
                <td class="tableSubjectWidth" style="width:100px;">休假时间：</td>
                <td><asp:Label ID="lbBeginDate" runat="server" Text=""></asp:Label>
                </td>
            </tr>
            <tr>
                <td>事假天数：</td>
                <td><asp:Label ID="lbSjDay" runat="server" Text=""></asp:Label>
                </td>
                <td>病假天数：</td>
                <td><asp:Label ID="lbBjDay" runat="server" Text=""></asp:Label>
                </td>
            </tr>
            <tr>
                <td>年假天数：</td>
                <td><asp:Label ID="lbNjDay" runat="server" Text=""></asp:Label>
                </td>
                <td>其他假天数：</td>
                <td><asp:Label ID="lbQtjDay" runat="server" Text=""></asp:Label>
                </td>
            </tr>
            <tr>
                <td>加班倒休天数：</td>
                <td><asp:Label ID="lbJbdxDay" runat="server" Text=""></asp:Label>
                </td>
                <td>值班倒休天数：</td>
                <td><asp:Label ID="lbZbdxDay" runat="server" Text=""></asp:Label>
                </td>
            </tr>
            <tr>
                <td>是否离开本市：</td>
                <td colspan="3"><ofcc:RadioButtonList ID="rbListLeaved2" Enabled="false" style="float:left; margin-right:70px;" runat="server" RepeatDirection="Horizontal">
                <asp:ListItem Text="是" Value="True"></asp:ListItem>
                <asp:ListItem Text="否" Value="False" Selected></asp:ListItem>
                </ofcc:RadioButtonList>
                <div style="float:left;">
                <ofcc:CheckBox ID="cbIsCar2" runat="server" Text="汽车" Enabled="false"/>
                <ofcc:CheckBox ID="cbIsTrain2" runat="server" Text="火车" Enabled="false"/>
                <ofcc:CheckBox ID="cbIsShip2" runat="server" Text="轮船" Enabled="false"/>
                <ofcc:CheckBox ID="cbIsAircraft2" runat="server" Text="飞机" Enabled="false"/>
                </div>
                </td>
            </tr>
            <tr>
                <td>去往何地：</td>
                <td colspan="3">
                <asp:Label ID="lbWhereTo" runat="server" Text=""></asp:Label>
                </td>
            </tr>
            <tr>
                <td>离京时间：</td>
                <td><asp:Label ID="lbLeaveDate" runat="server" Text=""></asp:Label>
                </td>
                <td>返京时间：</td>
                <td><asp:Label ID="lbBackDate" runat="server" Text=""></asp:Label>
                </td>
            </tr>
            <tr>
                <td>请假原因：</td>
                <td colspan="3"><asp:Label ID="lbDescription" runat="server" Text=""></asp:Label>
                </td>
            </tr>
        </table>
    </div>
</div>

<div id="divCancelButton" runat="server" class="webPanelButtonArea" >
    <ofcc:LinkButton ID="LinkButton3" runat="server" OnClick="btnCancel_Click"  CssClass="linkButton">取消</ofcc:LinkButton>
</div>

<uc1:ProcessList ID="ProcessList1" runat="server" />
</asp:Panel>






